"""
测试mysql工具类
"""
from pymysqlutil import MysqlUtil

if __name__ == '__main__':
    mysqlutil = MysqlUtil('db_qiku')
    sql = "update student set stuname='李四' where id = 1"
    data = mysqlutil.operator_data(sql)
    print(data)

    sql = "select * from student"
    data = mysqlutil.query_many(sql, 2)
    print(data)


